using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;

namespace NetworkPower.DataModel.Models.Mapping
{
    public class SeperatorNameValueMap : EntityTypeConfiguration<SeperatorNameValue>
    {
        public SeperatorNameValueMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.SeperatorName)
                .IsRequired()
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("SeperatorNameValues");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.SeperatorName).HasColumnName("SeperatorName");
        }
    }
}
